//全局配置
import axios from 'axios';
import Navs from '@/components/Navs';
import Shop from '@/components/Shop.vue';

const apiURL='http://127.0.0.1:3008';
const imgURL='http://127.0.0.1:3008';
axios.defaults.baseURL=apiURL;

export default {
    install(Vue,options){
        Vue.prototype.apiURL=apiURL;
        Vue.prototype.imgURL=imgURL;
        Vue.prototype.axios=axios;
        Vue.component('Navs',Navs);
        Vue.component('Shop',Shop);
        //Vue.prototype.cars={};
        Vue.prototype.cars=(new Vue({
            data:{
                cars:{}
            }
        })).cars
    }
}